<template>
	<view class="content">
		<view class="titleBox">
			<view class="title">这是一个可爱的动物修程序</view>
			<view class="span">
				在这里可以随机获取一张修动物的照片<br>
				用作表情、用作图片或者用作壁纸
			</view>
		</view>
		<image class="logo" src="/static/logo.jpg"></image>
		<view class="btnBox">
			<button type="btn" @click="toDog">我是修狗狗</button>
			<button type="btn" @click="toKitty">我是修猫咪</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			toDog() {
				wx.navigateTo({
					url:"../dog/index"
				})
			},
			toKitty() {
				wx.navigateTo({
					url:"../cat/index"
				})
			}
		}
	}
</script>

<style lang="less">
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		.titleBox{
			width: 100%;
			margin-top: 50rpx;
			// background-color: pink;
			text-align: center;
			.title{
				font-size: 50rpx;
				color: red;
				margin-bottom: 20rpx;
			}
			.span{
				font-size: 28rpx;
				line-height: 80rpx;
			}
		}
		.btnBox{
			width: 600rpx;
			display: flex;
			button:nth-child(1){
				background-color: green;
			}
			button:nth-child(2){
				background-color: pink;
			}
			// background-color: green;
		}
		.logo {
			height: 400rpx;
			width: 400rpx;
			margin: 100rpx 0;
			margin-left: auto;
			margin-right: auto;
		}
	}


</style>
